package edu.dut.yz.webdemo.controller;

import edu.dut.yz.webdemo.bean.Result;
import edu.dut.yz.webdemo.service.SqlService;
import org.springframework.boot.configurationprocessor.json.JSONArray;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/CustomizedSql")
public class SqlController {

    @PostMapping("/oneParameter")
    public Result oneParameter(@RequestBody Map<String,Object> map){
        SqlService sqlService=new SqlService();
        return sqlService.customizedSql(map);
    }

}
